//
//  Fitness_TrainHistory_ViewController.m
//  B_Project
//
//  Created by vera on 16/3/31.
//  Copyright © 2016年 宋强. All rights reserved.
//

#import "Fitness_TrainHistory_ViewController.h"

@interface Fitness_TrainHistory_ViewController ()

@end

@implementation Fitness_TrainHistory_ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creatView];
    // Do any additional setup after loading the view.
}

- (void)creatView {
    self.view.backgroundColor = [UIColor greenColor];
    
    self.navigationItem.title = @"所有训练历史";
    self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor], NSFontAttributeName:[UIFont boldSystemFontOfSize:18]};
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"fitBack"] style:UIBarButtonItemStylePlain target:self action:@selector(leftBarButtonAction:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"fitShare"] style:UIBarButtonItemStylePlain target:self action:@selector(shareAction:)];
    self.navigationItem.rightBarButtonItem.tintColor = [UIColor whiteColor];
}

- (void)shareAction:(UIBarButtonItem *)sender {
    NSLog(@"shareAction");
}

- (void)leftBarButtonAction:(UIBarButtonItem *)sender {
    NSLog(@"leftBarButtonAction");
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
